package com.yurui;

import com.yurui.config.MyClassPathXmlApplication;
import com.yurui.config.ServiceName;
import com.yurui.tx.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.sql.SQLException;
import java.util.Date;
import java.util.UUID;

public class TxMain {

    public static void main(String[] args) throws SQLException {

        ClassPathXmlApplicationContext context = new MyClassPathXmlApplication("tx.xml");

        UserService serviceName = context.getBean(UserService.class);

        serviceName.update("6","yurui");

    }
}
